var defaults = {
	url: config.path +"/a/ed/edeBasicHospital/app_GetHospitalData",
	provinceId:310000,
	cityID: 310100,
	districtId:0
};

app = new Vue({
	el: '#app',
	data: {
		message: "Vue",
		active : 0,
		hospitals: [],
		cityID: 0,
		districtId: 0,
	},
	methods: {
		onItemClick: function (item) {
			Akuma.setHospital(item.id);
		},
		toCity: function () {
			Akuma.toCity();
		},
	},
	init: function() {
		var _this = this;
		$$.getJSON(defaults.url, {provinceId: defaults.provinceId, cityID: defaults.cityID, districtId: defaults.districtId}, function(data) {
			if(data.status.index == 10000){
				_this.hospitals = data.results;
			}
		})
	}
});